$(function(){

	/*구매 창 열기*/
	$(document).on("click",".total_btn",function(event){

		$('div',this).slideDown("normal");
		
	});

	/*구매 창 닫기*/
	$(document).on("click",".total_close",function(event){
		
		$(this).parent().slideUp("fast");

		$(".total_menu").off(slideDown);
	});
	
	$(document).on("click",".giftCoupon",function(event){
		
		var div_id = $(this).parent().attr('id');
		
		var url = "giftCoupon.do" + "?cou_id="+div_id;

		window.open(url,'주소 찾기','top=200px,left=600px,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=500');
	});

	
	$('#pointDetail').click(function(){
		location.href='pointDetail.do';
	});
});

